
import { WIDGET } from "../constants/api";
import api from "../utils/api";

const _api = api(WIDGET);

export default {
  list: board => {
    return _api('list', {
      params: { board }
    });
  },
  getData: (boardComId, date) => {
    return _api('getData', {
      params: { id: boardComId, date: date },
    });
  },
  getInfo: boardComId => {
    return _api('info', {
      params: { id: boardComId }
    });
  },

}